﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for ReferanceUser
/// </summary>
/// 
namespace CE.User
{
    public class ReferenceUser
    {
        private Int64 _userid;
        private Int64 _refceuserid;
        private string _producttype;
        private Int64 _productid;
        private string _email;
        private string _fullname;
        private string _nric;
        private string _vehiclenumber;
        private string _mobilenumber;
        private string _info1;

        //common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public ReferenceUser()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 UserId
        {
            get { return _userid; }
            set { _userid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public string ProductType
        {
            get { return _producttype; }
            set { _producttype = value; }
        }

        public Int64 ProductId
        {
            get { return _productid; }
            set { _productid = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string FullName
        {
            get { return _fullname; }
            set { _fullname = value; }
        }

        public string NRIC
        {
            get { return _nric; }
            set { _nric = value; }
        }

        public string VehicleNumber
        {
            get { return _vehiclenumber; }
            set { _vehiclenumber = value; }
        }

        public string MobileNumber
        {
            get { return _mobilenumber; }
            set { _mobilenumber = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _userid = 0;
            _refceuserid = 0;
            _producttype = "";
            _productid = 0;
            _email = "";
            _fullname = "";
            _nric = "";
            _vehiclenumber = "";
            _mobilenumber = "";
            _info1 = "";

            //common field name
            _status = true;
            _createddate = new DateTime();
            _modifieddate = new DateTime();

        }

    }
}